package com.k.designpattern.creational.builder.buildercontext;

public class PersonTest {
    public static void main(String[] args) {
        Person p0 = new Person();
        p0.setId("0");
        p0.setName("kate");
        System.out.println(p0);

        Person p1 = new PersonBuilder().setId("1").setName("tom").build();
        System.out.println(p1);

        Person p2 = PersonBuilder.create().setId("2").setName("jim").build();
        System.out.println(p2);

        Person p3 = PersonContext.create().setPerson(a-> a.setId("3").setName("mary")).getPerson();
        System.out.println(p3);
    }
}
